package org.restorator.dao.base;

import org.restorator.entity.Item;
import org.restorator.entity.Order;
import org.restorator.exception.DataStoreException;

import java.util.List;

/**
 * @author Snisar Bogdan.
 */
public interface OrderDao extends GenericDao <Order, Integer> {

    /**
     * {not javadoc} First vararg must be table id.
     * @see GenericDao
     */
    @Override
    Integer save(Order persist, Object... addParams) throws DataStoreException;

    /**
     * Get order that connect to table.
     *
     * @param id table id
     * @return Order
     * @throws DataStoreException
     */
    Order getOrdersByTableId(int id) throws DataStoreException;
}
